package com.appstore.domain.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;

    private String name;

    private String password;

    private String email;

    private String phone;

    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date registrationDate;

    private String role;

    private Integer status;

    private String avatar;

}
